<template>
	<view class="pages" >
		<view class="content-box">
			<view class="content-box-title"><i class="iconfont icon-icon-test"></i>请选择发布的板块</view>
		</view>
		<city ref="citycheck" @back="doPsot"></city>
	</view>
</template>
<script>
	import City from '@/uni_modules/Lylist/city.vue';
	import {
		mapState,
		mapMutations
	} from 'vuex'
	import {
		getBase
	} from '@/api/api.js';
	export default {
		components: {
			City
		},
		data() {
			return {

			}
		},
		onLoad() {

		},
		computed: {
			...mapState(['hasLogin', 'userInfo']),
		},
		methods: {
			doPsot(t, id) {
				let _this = this;
				if (_this.hasLogin) {
					uni.navigateTo({
						url: "/pages/post/step?type=" + t + "&id=" + id
					})
				}else{
					uni.navigateTo({
						url: "/pages/user/login"
					})
				}
			},
		}
	}
</script>

<style lang="scss" scoped>


</style>